<?php
/**
 * banner
 * User: yuanxuncheng
 * Date: 2017/1/2
 * Time: 21:45
 */

namespace app\api\controller;

use app\api\model\page\banner\GetBanner as GetBannerModel;
use app\library\Error;
use think\Request;

class Banner
{

    private $getBannerModel;

    public function __construct()
    {
        $this->param = Request::instance()->param();
    }

    /**
     * @desc 获取banner
     * @return array
     */
    public function getBanner()
    {
        $this->getBannerModel = new GetBannerModel();
        return $this->getBannerModel->excute($this->param);
    }
}
